<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>

<body>
<div id="app">
    <el-dialog title="退出登录" :visible.sync="dialogFormVisible"
               style=" margin: 0 auto;">
        <el-button type="warning" @click="dialogFormVisible = false">取消</el-button>
        <el-button type="danger" @click="quit()">退出</el-button>

    </el-dialog>
</div>

<script>
    var haha = new Vue({
        el: "#app",
        data: {
            dialogFormVisible: true
        },
        methods: {
            quit() {
                this.$confirm('你将退出登录, 是否继续?', '温馨提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                        window.parent.location.href="/ssm";
                }).catch(() => {
                    this.$message({
                        type: 'info',
                        message: '已取消退出'
                    });
                });
            }
        }
    })
</script>
</body>
</html>
